﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace wForm
{
    public partial class frmUrun : Form
    {
        public frmUrun()
        {
            InitializeComponent();
            this.Load += new EventHandler(frmUrun_Load);

        }

        DataClasses1DataContext db = new DataClasses1DataContext(); 

        void frmUrun_Load(object sender, EventArgs e)
        {
            rLueDoviz.DataSource = db.Dovizs;
            rLueKategori.DataSource = db.Kategoris;
            rLueMarka.DataSource = db.Markas;

            gridControl1.DataSource = db.Uruns; 
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            db.SubmitChanges();

            MessageBox.Show("Kayıt Tamamlandı");
        }
    }
}
